package com.jd.cmdb.tsc.dao;

import com.jd.cmdb.tsc.entity.TaskLog;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by tianzhengguo on 2016/1/12.
 */
@Repository
public class TaskLogDaoImpl extends BaseDao implements TaskLogDao {
    private static final Logger logger = LoggerFactory.getLogger(TaskLogDaoImpl.class);

    public List<TaskLog> selAllTaskLogs() throws Exception {
        return null;
    }

    public TaskLog selTaskLog(String taskId) throws Exception {
        return null;
    }

    public List<TaskLog> selTaskLogs(String taskId) {
        return null;
    }

    public int addTaskLog(TaskLog log) throws Exception {
        logger.info("增加日志");
        return getSqlSession().insert("taskLog.insert",log);
    }

    public int addTaskLog(String taskId) throws Exception {
        return 0;
    }

    public int updateTaskLog(String taskId) throws Exception {
        return 0;
    }

    public int deleteTaskLog(String taskId) throws Exception {
        return 0;
    }

    public int deleteAll() throws Exception {
        return 0;
    }
}
